package com.example.hehecat.yuejian1.mvp.model;

import com.example.hehecat.yuejian1.http.RetrofitHttp;
import com.example.hehecat.yuejian1.mvp.contract.UpdateMineContract;
import com.example.hehecat.yuejian1.mvp.model.bean.SuccessBean;
import com.example.hehecat.yuejian1.mvp.model.bean.UserBean;

import okhttp3.OkHttpClient;
import retrofit2.Callback;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

public class UpdateMineModel implements UpdateMineContract.Model {
    @Override
    public void updatemine(int user_id, String nickname, String password, String address, String phone, Callback<SuccessBean> callback) {
        OkHttpClient.Builder builder = new OkHttpClient.Builder();
        RetrofitHttp.getRetrofit(builder).updateUser(user_id,nickname,password,address, phone)
                .enqueue(callback);
    }
}